package com.shell.governor.security.user.controller;

import com.shell.bee.base.annotation.Logging;
import com.shell.bee.entity.mvc.RetMsg;
import com.shell.bee.mvc.controller.BaseController;
import com.shell.governor.security.user.po.PubSecurityIssueResult;
import com.shell.governor.security.user.service.PubSecurityIssueResultService;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PubSecurityIssueResultController extends BaseController {
	@Autowired
	private PubSecurityIssueResultService pubSecurityIssueResultService;

	@RequestMapping
	@Logging(module = "��������", methods = "������������")
	public RetMsg editSecurityIssueResult(PubSecurityIssueResult pubSecurityIssueResult, HttpServletRequest request)
			throws Exception {
		return this.pubSecurityIssueResultService.editSecurityIssueResult(pubSecurityIssueResult);
	}

	@RequestMapping
	@Logging(module = "��������", methods = "������������")
	public PubSecurityIssueResult findSecurityIssueResult(String issueId) {
		return this.pubSecurityIssueResultService.findSecurityIssueResult(issueId);
	}

	@RequestMapping({ "auth/check-security-issue" })
	@Logging(module = "��������", methods = "������������")
	public RetMsg checkSecurityIssue(String loginName, String questionId, String answer, String verificationCode,
			HttpServletRequest request) throws Exception {
		return this.pubSecurityIssueResultService.checkSecurityIssue(loginName, questionId, answer, verificationCode);
	}
}
